import { AnimationClip } from "cc";
import State from "../../Base/State";
import { DIRECTION_ENUM, DIRECTION_ORDER_ENUM, PARAMS_NAME_ENUM, SPIKES_COUNT_ENUM, SPIKES_COUNT_MAP_NUMBER_ENUM } from "../../Enums";
import { StateMachine } from "../../Base/StateMachine";
import DirectionSubStateMachine from "../../Base/DirectionSubStateMachine";
import { SubStateMachine } from "../../Base/SubStateMachine";
import SpikesSubStateMachine from "./SpikeSubStateMachine";

const BASE_URL='texture/spikes/spikesone'

export default class SpikesOneSubStateMachine extends SpikesSubStateMachine {
  constructor(fsm: StateMachine){
    super(fsm)//调用父类构造函数
    this.stateMachines.set(SPIKES_COUNT_ENUM.ZERO,new State(fsm,`${BASE_URL}/zero`))
    this.stateMachines.set(SPIKES_COUNT_ENUM.ONE,new State(fsm,`${BASE_URL}/one`))
    this.stateMachines.set(SPIKES_COUNT_ENUM.TWO,new State(fsm,`${BASE_URL}/two`))
    // console.log(BASE_URL)
  }
}
